Optimal lighting using AI